<div class="xxyydd medium-12 column" style="padding:0;">
	<?php foreach ($past_events as $value) { ?>

	<div class="hov medium-6  column" style="padding:.5rem !important;">			
		<div class="wall-post large-12 columns">
			<div class="wall-head large-12 column" style="background:#F5F5F5;">
				<div class="eventnow medium-12 columns">
					<a href="" style="font-size:.9rem;"><?= $value->title ?></a>
				</div>
			</div>
			<div class="meetupinfo large-12 column" style="padding:.45rem;border:none !important;">
				<h5>Posted by: <span><a><?=$value->fname.' '.$value->lname?></a></span> </h5>
				<h5>When: <span><?php 
						$date = new DateTime($value->when,new DateTimeZone("Asia/Hong_Kong")); 
						echo $date->format('M d, Y h:m A')	;
					?></span></h5>
				<h5>Venue: <span><?= $value->venue?></span></h5>
				<h5>Rating: <span>18.9/20</span></h5>
			</div>
			<div class="likeshare large-12 column" style="padding-left:.5rem !important;">
				<div class="rateit medium-12 column">
					<a href="">How was the event? <span>Rate it now.</span></a>
				</div>
			</div>
		</div>
	</div>

	<?php } ?>
</div>
